package com.howso.cloud.changan.user.api;

import com.howso.cloud.annotation.LoginUser;
import com.howso.cloud.changan.user.query.ChanganUserQueryApplicationService;
import com.howso.cloud.feign.UserService;
import com.howso.cloud.oauth2.model.LoginAppUser;
import com.howso.cloud.oauth2.model.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserServiceImpl  implements UserService {
    @Autowired(required=true)
    private ChanganUserQueryApplicationService changanUserApplicationService;

    @Override
    public SysUser selectByUsername(String s) {
        SysUser user=changanUserApplicationService.selectByUsername(s);
        return new SysUser();
    }

    @Override
    public LoginAppUser findByUsername(String s) {
        SysUser users=changanUserApplicationService.selectByUsername(s);
        return new LoginAppUser();
    }

    @Override
    public LoginAppUser findByMobile(String s) {
        return new LoginAppUser();
    }

    @Override
    public LoginAppUser findByEmail(String s) {
        return new LoginAppUser();
    }

    @Override
    public LoginAppUser findByIdCard(String s) {
        return new LoginAppUser();
    }

    @Override
    public LoginAppUser findByOpenId(String s) {
        return new LoginAppUser();
    }
}
